package cn.yangke.org.mapper;

import cn.yangke.org.domain.Shop;
import cn.yangke.basic.mapper.BaseMapper;
import cn.yangke.org.vo.ShopVo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yangke
 * @since 2022-06-12
 */
public interface ShopMapper extends BaseMapper<Shop> {

    /**
     * 根据名字查询
     * @param name
     * @return
     */
    Shop loadByName(String name);

    /**
     * 查询不同状态的店铺
     * @return
     */
    List<ShopVo> queryEcharts();

    /**
     * 批量新增
     * @param shops
     */
    void batchSave(List<Shop> shops);
}
